package me.boot.sys.config;

import lombok.extern.slf4j.Slf4j;
import me.boot.common.yaml.YamlPropertyFactory;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

import javax.annotation.PostConstruct;

@Slf4j
@ComponentScan("me.boot.sys")
@PropertySource(factory = YamlPropertyFactory.class, value = {"classpath:sys.yml"})
@Configuration(proxyBeanMethods = false)
public class SysConfiguration {

    @PostConstruct
    void init() {
        log.info("Init SysConfiguration");
    }

}
